# -*- mode: python -*-
from kivy.tools.packaging.pyinstaller_hooks import install_hooks
install_hooks(globals())

from os import getcwd

# This file must be in the folder containing the source code
#   which is the folder that contains these files:
#   dryfire.py, dryfire.ico, splash.png, README, LICENSE  

a = Analysis(['dryfire.py'],
             pathex=[getcwd()],
             hiddenimports=[],
             #hookspath=None,
             runtime_hooks=None)

pyz = PYZ(a.pure)

exe = EXE(pyz,
          a.scripts,
          exclude_binaries=True,
          name='dryfire.exe',
          debug=False,
          strip=None,
          upx=True,
          console=False,
          icon='dryfire.ico')

coll = COLLECT(exe,
               a.binaries +
               [
               ('README', 'README', 'DATA'),
               ('LICENSE', 'LICENSE', 'DATA'),
               ('splash.png', 'splash.png', 'DATA')
               ],
               a.zipfiles,
               a.datas,
               strip=None,
               upx=True,
               name='dryfire')